<template>
  <div class="full-page xiaoxi">
    <header>
      <i class="iconfont icon-arrow-left" @click="back"></i>
      <h3>消息</h3>
    </header>
    <!--  -->
    <ul class="ul">
      <li class="list">
         <router-link to="xiaoxi/1"><div class="item_left">
          <span class="icon">
            <i class="iconfont icon-24px"></i>
          </span>
          <span class="wenzi">赞与收藏</span>
        </div></router-link>
        <div class="item_right">
          <b class="sz">1</b>
        </div>
      </li>
      <li class="list">
       <router-link to="xiaoxi/2"> <div class="item_left">
          <span class="icon icon2">
            <i class="iconfont icon-31xiaoxi"></i>
          </span>
          <span class="wenzi">评论和@</span>
        </div></router-link>
        <div class="item_right">
          <b class="sz">2</b>
        </div>
      </li>
      <li class="list">
         <router-link to="xiaoxi/3">  <div class="item_left">
          <span class="icon icon3">
            <i class="iconfont icon-aixin"></i>
          </span>
          <span class="wenzi">新增粉丝</span>
        </div></router-link>
        <div class="item_right">
          <b class="sz">3</b>
        </div>
      </li>
    </ul>
    <!--  -->
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  methods: {
    back() {
      this.$router.back();
    },
  },
};
</script>

<style scoped lang="scss">
.ul {
  .list {
    width: 90%;
    margin: 0px auto;
    height: 80px;
    padding: 10px 0px;
    line-height: 60px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;

    .icon {
      display: inline-block;
      width: 40px;
      height: 40px;
      text-align: center;
      border-radius: 50%;
      background: rgba(255, 98, 98, 1);
      margin-right: 10px;
      line-height: 40px;
      cursor: pointer;
      i {
        font-size: 20px;
        color: #fff;
      }
    }
    .icon2 {
      background: rgba(30, 159, 242, 1);
    }
    .icon3 {
      background: rgba(40, 208, 148, 1);
    }
    .wenzi {
      font-size: 14px;
      color: #333333;
      cursor: pointer;
    }
    .item_right {
      text-align: center;
      width: 20px;
      height: 20px;
      background: red;
      border-radius: 50%;
      line-height: 20px;
      margin-top: 20px;
      cursor: pointer;
      b {
        font-size: 14px;
        color: #fff;
      }
    }
  }
}

.xiaoxi {
  position: absolute;
  z-index: 1;
  background: #ffffff;
}

header {
  height: 50px;
  line-height: 50px;
  i {
    font-size: 18px;
    position: absolute;
    left: 20px;
  }
  h3 {
    text-align: center;
    font-weight: 700;
  }
}
</style>